package com.etone.smartAudit.mapstruct;

import com.etone.smartAudit.domain.AdminRole;
import com.etone.smartAudit.dto.admin.AdminRoleDTO;
import com.etone.smartAudit.vo.adminRole.AdminRoleVO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.NullValueCheckStrategy;

/**
 * @author: sovy
 * @date: 2020-06-13 17:48:35
 * @description:
 */
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface AdminRoleMapstruct {

    void copyToAdmin(@MappingTarget AdminRole adminRole, AdminRoleDTO adminRoleDTO);

    AdminRoleVO getAdminRoleVO(AdminRole adminRole);
}
